<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>

    <!--    抽取公共头部-->
    <div th:replace="share/common :: head"></div>

</head>
<body>

<!--抽取公共导航-->
<div th:replace="share/common :: menu(1)"></div>


<!--顶部图片-->
<div class="m-bg-class_outer" style="width: 100%;height: 750px">
    <img src="../static/images/bg.jpg" th:src="@{/images/guoqi.jpg}" alt="" class="ui m-bg image"
         style="width: 100%;height: 100%">


    <div class="m-bg-class_cover" align="center">

        <!--        抽取公共站点资料-->
        <div th:replace="share/common :: #person_data"></div>

        <h3 class="m-font-size-text" align="center">加话</h3>
        <hr style="width: 30%">
        <h5 class="m-font-size-text-init-title m-margin-top-large">加话</h5>
        <h5 class="m-font-size-text-init-title">加话</h5>
        <h5 class="m-font-size-text-init-title">加话</h5>
        <h5 class="m-font-size-text-init-title">加话</h5>
        <div id="waypoint" class="ui  m-margin-top-large" align="center">
            <a href="#" class="ui circular  icon button m-opacity-small m-item item m-mobile-hide m-index-btn"><i class="home icon"></i>首页</a>
            <a href="#" class="ui circular  icon button m-opacity-small m-item item m-mobile-hide m-index-btn"><i class="clock icon"></i>时间轴</a>
            <a href="#" class="ui circular  icon button m-opacity-small m-item item m-mobile-hide m-index-btn"><i class="clone outline icon"></i>英雄名录</a>
            <a href="#" class="ui circular  icon button m-opacity-small m-item item m-mobile-hide m-index-btn"><i class="music icon"></i>重大战役</a>
            <a href="#" class="ui circular  icon button m-opacity-small m-item item m-mobile-hide m-index-btn"><i class="pencil alternate icon"></i>日寇暴行</a>
            <!--      <a href="#" class="ui circular  icon button m-opacity-small m-item item m-mobile-hide m? 'active'"><i class="image icon"></i>照片墙</a>-->
            <a href="#" class="ui circular  icon button m-opacity-small m-item item m-mobile-hide m-index-btn"><i class="book icon"></i>留言板</a>
            <a href="#" class="ui circular  icon button m-opacity-small m-item item m-mobile-hide m-index-btn"><i class="info icon"></i>关于本站</a>
        </div>
        <div class="hiddenDiv"></div>
    </div>

</div>
<div id="video"></div>
<!--下一页上一页转到这里-->
<br/>
<br/>
<br/>
<br/>
<br/>
<!--视频推荐-->
<div class="ui m-padded-tb-large">
    <div class="ui m-container-small m-opacity">
        <div class="ui secondary segment " align="center">
            <i class="bookmark icon"></i><b style="">视频推荐</b>
        </div>
    </div>
    <div class="ui stackable m-container-mini m-opacity grid">
        <!--video-->
        <div class="m-margin-tb-tiny four wide column" th:each="video:${videos}">
            <a href="#" class="class_outer" target="_blank" th:href="${video.address}">
                <img  style="width: 100%; height: auto;max-width: 100%; display: block;"
                     src="../static/images/backimg1.jpg" alt="" class="ui rounded image" th:src="${video.img}">
                <span class="class_cover">
                     <h4 class="m-font-size-blog-text m-margin-tb-tiny" th:text="${video.videoname}">大圣，此去欲何?</h4>
                  </span>
            </a>
        </div>

    </div>

</div>


<!--中间内容-->
<div class="m-padded-tb-big animated fadeIn">
    <div class="ui container">
        <div class="ui stackable grid">
            <!--博客内容-->
            <div class="ui vertical segment">
                <div class="ui m-container-small m-opacity">
                    <div class="ui secondary segment " align="center">
                        <i class="bookmark icon"></i>最新文章
                    </div>
                </div>
                <!--博文列表-->
                <div class="ui padded segment m-padded-tb-large m-opacity" th:each="blog :${blogRecords}">
                    <div class="ui large aligned mobile reversed stackable grid">
                        <!--博文信息-->
                        <div class="eleven wide column ">
                            <h3 class="ui header"><a href="#"th:href="'/detail/?blogId='+${blog.blogId}" target="_blank" class="m-black" th:text="${blog.title}">大圣，此去欲何?</a>
                            </h3>
                            <p class="m-text m-margin-top-max" th:text="${blog.description}">
                                戴上金箍，没法爱你；放下金箍，没法保护你。我知道上天不会给我第二次机会，曾经我们说好的永远，原来也仅仅只有，十二画，而已。“大圣，此去欲何?”“踏南天，碎凌霄。”“若一去不回……”“便一去不回”
                                其实很多时候，我们都是有机会的，最后真正放弃的，是我们自己。......</p>
                            <div class="ui m-margin-top-max grid">
                                <div class="eleven wide column">
                                    <div class="ui mini horizontal link list">
<!--                                        <div class="item">-->
<!--                                            <img th:src="${blog.img}" src="../static/images/me.jpg" alt="" class="ui avatar image">-->
<!--                                        </div>-->
                                        <div class="item">
                                            <i class="calendar icon"></i><span
                                                th:text="${#dates.format(blog.createTime,'yyyy-MM')}">2020-01-01</span>
                                        </div>
                                        <div class="item">
                                            <i class="eye icon"></i> <span th:text="${blog.views}">2222</span>
                                        </div>
                                        <div class="item">
                                            <i class="comment outline icon"></i> <span th:text="${blog.commentCount}">2222</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="right aligned five wide column">
                                    <!--                                    todo 这块是分类？-->
                                    <a href="#" target="_blank" class="ui red basic label m-padded-tiny m-text-thin"
                                       th:text="${#dates.format(blog.archives,'yyyy-MM')}">好文</a>
                                </div>
                            </div>
                        </div>
                        <!--博文图片-->
                        <div class="five wide column">
                            <a href="#" target="_blank" th:href="'/detail/?blogId='+${blog.blogId}">
                                <img src="../static/images/backimg1.jpg"  style="width: 100%; height: auto;max-width: 100%; display: block;" alt="" class="ui rounded image"
                                     th:src="${blog.img}">
                            </a>
                        </div>

                    </div>
                </div>


            </div>
            <!--分页-->
            <div class="ui bottom attached segment m-opacity stackable grid">
                <div class="three wide column" align="center">
                    <a th:if="${hasPrevious}" th:href="'/index/'+${current-1}+'/'+${limit}+'#video'"
                       class="item ui red base button">上一页</a>
                </div>

                <div class="ten wide column" align="center">
                    <p><span></span>  <span></span></p>
                </div>

                <div class="three wide column" align="center">
                    <a th:if="${hasNext}" th:href="'/index/'+${current+1}+'/'+${limit}+'#video'"
                       class="item ui red base button">下一页</a>
                </div>
            </div>

        </div>
    </div>

</div>


<!--置顶图标-->
<div class="m-padded-tb-large m-fixed m-right-bottom">
    <a href="#" class="ui icon button"><i class="chevron up icon"></i> </a>
</div>


<br>
<br>
<br>
<!--抽取公共底部栏-->
<div th:replace="share/common :: #footer"></div>

<!--    抽取公共js    -->
<div th:replace="share/common :: #js"></div>

</body>
</html>